<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of eliminarTitular
 *
 * @author Suco
 * 
 */
include_once '../../core/InterfazDatos.php';
include_once '../../core/Controlador.php';
include_once '../../core/Conexion.php';

class eliminarTitular extends Controlador {
    public function ejecutar() {
        
        $this->conexion->consultaLibre("DELETE FROM TBL_TITULAR WHERE TIT_CODIGO='".$_REQUEST['codigo']."'");
        header("Location:../mensajeExito.php");
    }

//put your code here
}
$controlador=new eliminarTitular();
$controlador->ejecutar();

